home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / E-G / FinderHype.cpt / FinderHype / card_2998.txt < prev    next >
Text File  |  1989-02-26  |  27KB  |  975 lines

  1. -- card: 2998 from stack: in
  2. -- bmap block id: 3719
  3. -- flags: 4000
  4. -- background id: 2725
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on opencard
  8.   put the long date into card field "Date"
  9.   put the time into card field "Time"
  10. end opencard
  11.  
  12. On HandleDoc
  13.   put ((scroll of card field "list"+the clickv - top of card field "list") div textheight of card field "list")+1 into t
  14.   get line t of card field "names"
  15.   if it ‚↠empty then
  16.     put PopUpMenu(it,0,item 3 of rect of target,item 2 of rect of target) into res
  17.     set hilite of target to false
  18.     if res > 0 then open item res of line t of card field "Docs" with line t of card field "Paths"
  19.   end if
  20. end HandleDoc
  21.  
  22. function whichline
  23. return ((scroll of target+the clickv-top of target) div textheight of target)+1
  24. end whichline
  25.  
  26.  
  27.  
  28.  
  29. -- part 7 (field)
  30. -- low flags: 01
  31. -- high flags: 0000
  32. -- rect: left=436 top=324 right=342 bottom=509
  33. -- title width / last selected line: 0
  34. -- icon id / first selected line: 0 / 0
  35. -- text alignment: 65535
  36. -- font id: 3
  37. -- text size: 12
  38. -- style flags: 2048
  39. -- line height: 16
  40. -- part name: Time
  41.  
  42.  
  43. -- part 13 (field)
  44. -- low flags: 01
  45. -- high flags: 0000
  46. -- rect: left=0 top=325 right=342 bottom=231
  47. -- title width / last selected line: 0
  48. -- icon id / first selected line: 0 / 0
  49. -- text alignment: 0
  50. -- font id: 3
  51. -- text size: 12
  52. -- style flags: 2048
  53. -- line height: 16
  54. -- part name: Date
  55.  
  56.  
  57. -- part 14 (field)
  58. -- low flags: 01
  59. -- high flags: 4007
  60. -- rect: left=21 top=59 right=298 bottom=249
  61. -- title width / last selected line: 0
  62. -- icon id / first selected line: 0 / 0
  63. -- text alignment: 0
  64. -- font id: 0
  65. -- text size: 12
  66. -- style flags: 0
  67. -- line height: 16
  68. -- part name: List
  69. ----- HyperTalk script -----
  70. on mouseup
  71.   get line whichline() of card field "paths"
  72.   if it ‚↠empty then open it
  73. end mouseup
  74.  
  75.  
  76. -- part 15 (button)
  77. -- low flags: 00
  78. -- high flags: 2000
  79. -- rect: left=22 top=43 right=59 bottom=65
  80. -- title width / last selected line: 0
  81. -- icon id / first selected line: 0 / 0
  82. -- text alignment: 1
  83. -- font id: 0
  84. -- text size: 12
  85. -- style flags: 0
  86. -- line height: 16
  87. -- part name: Add Application
  88. ----- HyperTalk script -----
  89. on mouseUp
  90.   Put "Select an application to add to the list.  Cancel to quit."
  91.   repeat forever
  92.     put filename("APPL") into launchthis
  93.     if launchthis is empty then exit repeat
  94.     lock screen
  95.     get lastpathcomponent(launchthis)
  96.     repeat with x = 1 to the number of lines in card field "list"
  97.       if line x of card field "list" = it then
  98.         put launchthis into line x of card field "paths"
  99.         put empty into launchthis
  100.         exit repeat
  101.       end if
  102.       if line x of card field "list" > it then
  103.         put it & return before line x of card field "list"
  104.         put return before line x of card field "Docs"
  105.         put return before line x of card field "names"
  106.         put return before line x of card field "paths"
  107.         put launchthis into line x of card field "paths"
  108.         put empty into launchthis
  109.         exit repeat
  110.       end if
  111.     end repeat
  112.     if launchthis ‚↠empty then
  113.       put it & return into line x+1 of card field "List"
  114.       put launchthis into line x+1 of card field "Paths"
  115.     end if
  116.   end repeat
  117.   hide message
  118.   set scroll of card field "List" to 0
  119. end mouseup
  120.  
  121.  
  122.  
  123. -- part 16 (button)
  124. -- low flags: 00
  125. -- high flags: 2000
  126. -- rect: left=107 top=43 right=59 bottom=149
  127. -- title width / last selected line: 0
  128. -- icon id / first selected line: 0 / 0
  129. -- text alignment: 1
  130. -- font id: 0
  131. -- text size: 12
  132. -- style flags: 0
  133. -- line height: 16
  134. -- part name: Delete Application
  135. ----- HyperTalk script -----
  136. on mouseUp
  137.   if card field "List" is empty then exit mouseup
  138.   DoList "Delete","Cancel",card field "List","DIS-+","Choose applications to delete."
  139.   if the result is empty then exit mouseup else put the result into App
  140.   lock screen
  141.   repeat with x = number of items of App down to 1
  142.     get item x of app
  143.     delete line it of card field "List"
  144.     delete line it of card field "Paths"
  145.     delete line it of card field "Names"
  146.     delete line it of card field "Docs"
  147.   end repeat
  148.   Set scroll of card field "List" to 0
  149. end mouseUp
  150.  
  151.  
  152.  
  153. -- part 42 (field)
  154. -- low flags: 81
  155. -- high flags: 0007
  156. -- rect: left=47 top=39 right=264 bottom=486
  157. -- title width / last selected line: 0
  158. -- icon id / first selected line: 0 / 0
  159. -- text alignment: 0
  160. -- font id: 3
  161. -- text size: 9
  162. -- style flags: 0
  163. -- line height: 12
  164. -- part name: Paths
  165.  
  166.  
  167. -- part 45 (field)
  168. -- low flags: 81
  169. -- high flags: 4007
  170. -- rect: left=0 top=31 right=290 bottom=490
  171. -- title width / last selected line: 0
  172. -- icon id / first selected line: 0 / 0
  173. -- text alignment: 0
  174. -- font id: 3
  175. -- text size: 9
  176. -- style flags: 0
  177. -- line height: 12
  178. -- part name: Docs
  179.  
  180.  
  181. -- part 66 (button)
  182. -- low flags: 00
  183. -- high flags: 2000
  184. -- rect: left=66 top=43 right=59 bottom=106
  185. -- title width / last selected line: 0
  186. -- icon id / first selected line: 0 / 0
  187. -- text alignment: 1
  188. -- font id: 0
  189. -- text size: 12
  190. -- style flags: 0
  191. -- line height: 16
  192. -- part name: Add Document
  193. ----- HyperTalk script -----
  194. on mouseup
  195.   if card field "list" is empty then exit mouseup
  196.   repeat forever
  197.     put "Please select a document to add.  Cancel to quit."
  198.     put filename() into docpath
  199.     if docpath is empty then exit repeat
  200.     DOList select,cancel,card field "List","ONE-+","Select the application it goes with."
  201.     if the result = empty then exit repeat else put the result into App
  202.     get lastpathcomponent(docpath)
  203.     repeat with m = 1 to number of items in line app of card field "names"
  204.       if item m of line app of card field "names" = it then
  205.         put docpath into item m of line app of card field "docs"
  206.         exit repeat
  207.       else if item m of line app of card field "names" > it then
  208.         put docpath & "," before item m of line app of card field "docs"
  209.         put it & "," before item m of line app of card field "names"
  210.         exit repeat
  211.       end if
  212.     end repeat
  213.     put number of items of line app of card field "names"+1 into ck
  214.     if last item of line app of card field "names" < it then
  215.       put docpath into item ck of line app of card field "Docs"
  216.       put it into item ck of line app of card field "Names"
  217.     end if
  218.   end repeat
  219.   hide message
  220. end mouseup
  221.  
  222.  
  223. -- part 67 (button)
  224. -- low flags: 00
  225. -- high flags: 2000
  226. -- rect: left=150 top=43 right=59 bottom=191
  227. -- title width / last selected line: 0
  228. -- icon id / first selected line: 0 / 0
  229. -- text alignment: 1
  230. -- font id: 0
  231. -- text size: 12
  232. -- style flags: 0
  233. -- line height: 16
  234. -- part name: Delete Document
  235. ----- HyperTalk script -----
  236. on mouseUp
  237.   if card field "List" is empty then exit mouseup
  238.   repeat forever
  239.     DOList "Choose","Cancel",card field "List","ONE-+","Choose application containing documents."
  240.     if the result = empty then exit repeat else put the result into me
  241.     if line me of card field "names" = empty then exit repeat
  242.     DOList "Delete","Cancel",return & line me of card field "names","DIS+", "Choose a document to delete."
  243.     if the result is empty then exit repeat else put the result into doc
  244.     lock screen
  245.     repeat with x = number of items of doc down to 1
  246.       get item x of doc
  247.       if number of items of line me of card field "names" = 1 then
  248.         put empty into line me of card field "names"
  249.         put empty into line me of card field "docs"
  250.       else
  251.         delete item it of line me of card field "Names"
  252.         delete item it of line me of card field "Docs"
  253.       end if
  254.     end repeat
  255.   end repeat
  256.   hide message
  257. end mouseUp
  258.  
  259.  
  260.  
  261. -- part 69 (button)
  262. -- low flags: 00
  263. -- high flags: 2000
  264. -- rect: left=209 top=59 right=75 bottom=231
  265. -- title width / last selected line: 0
  266. -- icon id / first selected line: 29332 / 29332
  267. -- text alignment: 1
  268. -- font id: 0
  269. -- text size: 12
  270. -- style flags: 0
  271. -- line height: 16
  272. -- part name: 
  273. ----- HyperTalk script -----
  274. on mousedown
  275.   HandleDoc
  276. end mousedown
  277.  
  278.  
  279.  
  280. -- part 70 (button)
  281. -- low flags: 00
  282. -- high flags: 2000
  283. -- rect: left=209 top=75 right=91 bottom=231
  284. -- title width / last selected line: 0
  285. -- icon id / first selected line: 29332 / 29332
  286. -- text alignment: 1
  287. -- font id: 0
  288. -- text size: 12
  289. -- style flags: 0
  290. -- line height: 16
  291. -- part name: 
  292. ----- HyperTalk script -----
  293. on mousedown
  294.   HandleDoc
  295. end mousedown
  296.  
  297.  
  298.  
  299. -- part 71 (button)
  300. -- low flags: 00
  301. -- high flags: 2000
  302. -- rect: left=209 top=91 right=107 bottom=231
  303. -- title width / last selected line: 0
  304. -- icon id / first selected line: 29332 / 29332
  305. -- text alignment: 1
  306. -- font id: 0
  307. -- text size: 12
  308. -- style flags: 0
  309. -- line height: 16
  310. -- part name: 
  311. ----- HyperTalk script -----
  312. on mousedown
  313.   HandleDoc
  314. end mousedown
  315.  
  316.  
  317.  
  318. -- part 72 (button)
  319. -- low flags: 00
  320. -- high flags: 2000
  321. -- rect: left=209 top=107 right=123 bottom=231
  322. -- title width / last selected line: 0
  323. -- icon id / first selected line: 29332 / 29332
  324. -- text alignment: 1
  325. -- font id: 0
  326. -- text size: 12
  327. -- style flags: 0
  328. -- line height: 16
  329. -- part name: 
  330. ----- HyperTalk script -----
  331. on mousedown
  332.   HandleDoc
  333. end mousedown
  334.  
  335.  
  336.  
  337. -- part 73 (button)
  338. -- low flags: 00
  339. -- high flags: 2000
  340. -- rect: left=209 top=123 right=139 bottom=231
  341. -- title width / last selected line: 0
  342. -- icon id / first selected line: 29332 / 29332
  343. -- text alignment: 1
  344. -- font id: 0
  345. -- text size: 12
  346. -- style flags: 0
  347. -- line height: 16
  348. -- part name: 
  349. ----- HyperTalk script -----
  350. on mousedown
  351.   HandleDoc
  352. end mousedown
  353.  
  354.  
  355.  
  356. -- part 74 (button)
  357. -- low flags: 00
  358. -- high flags: 2000
  359. -- rect: left=209 top=139 right=155 bottom=231
  360. -- title width / last selected line: 0
  361. -- icon id / first selected line: 29332 / 29332
  362. -- text alignment: 1
  363. -- font id: 0
  364. -- text size: 12
  365. -- style flags: 0
  366. -- line height: 16
  367. -- part name: 
  368. ----- HyperTalk script -----
  369. on mousedown
  370.   HandleDoc
  371. end mousedown
  372.  
  373.  
  374.  
  375. -- part 75 (button)
  376. -- low flags: 00
  377. -- high flags: 2000
  378. -- rect: left=209 top=155 right=171 bottom=231
  379. -- title width / last selected line: 0
  380. -- icon id / first selected line: 29332 / 29332
  381. -- text alignment: 1
  382. -- font id: 0
  383. -- text size: 12
  384. -- style flags: 0
  385. -- line height: 16
  386. -- part name: 
  387. ----- HyperTalk script -----
  388. on mousedown
  389.   HandleDoc
  390. end mousedown
  391.  
  392.  
  393.  
  394. -- part 76 (button)
  395. -- low flags: 00
  396. -- high flags: 2000
  397. -- rect: left=209 top=171 right=187 bottom=231
  398. -- title width / last selected line: 0
  399. -- icon id / first selected line: 29332 / 29332
  400. -- text alignment: 1
  401. -- font id: 0
  402. -- text size: 12
  403. -- style flags: 0
  404. -- line height: 16
  405. -- part name: 
  406. ----- HyperTalk script -----
  407. on mousedown
  408.   HandleDoc
  409. end mousedown
  410.  
  411.  
  412.  
  413. -- part 77 (button)
  414. -- low flags: 00
  415. -- high flags: 2000
  416. -- rect: left=209 top=187 right=203 bottom=231
  417. -- title width / last selected line: 0
  418. -- icon id / first selected line: 29332 / 29332
  419. -- text alignment: 1
  420. -- font id: 0
  421. -- text size: 12
  422. -- style flags: 0
  423. -- line height: 16
  424. -- part name: 
  425. ----- HyperTalk script -----
  426. on mousedown
  427.   HandleDoc
  428. end mousedown
  429.  
  430.  
  431.  
  432. -- part 78 (button)
  433. -- low flags: 00
  434. -- high flags: 2000
  435. -- rect: left=209 top=203 right=219 bottom=231
  436. -- title width / last selected line: 0
  437. -- icon id / first selected line: 29332 / 29332
  438. -- text alignment: 1
  439. -- font id: 0
  440. -- text size: 12
  441. -- style flags: 0
  442. -- line height: 16
  443. -- part name: 
  444. ----- HyperTalk script -----
  445. on mousedown
  446.   HandleDoc
  447. end mousedown
  448.  
  449.  
  450.  
  451. -- part 79 (button)
  452. -- low flags: 00
  453. -- high flags: 2000
  454. -- rect: left=209 top=218 right=234 bottom=231
  455. -- title width / last selected line: 0
  456. -- icon id / first selected line: 29332 / 29332
  457. -- text alignment: 1
  458. -- font id: 0
  459. -- text size: 12
  460. -- style flags: 0
  461. -- line height: 16
  462. -- part name: 
  463. ----- HyperTalk script -----
  464. on mousedown
  465.   HandleDoc
  466. end mousedown
  467.  
  468.  
  469.  
  470. -- part 80 (button)
  471. -- low flags: 00
  472. -- high flags: 2000
  473. -- rect: left=209 top=234 right=250 bottom=231
  474. -- title width / last selected line: 0
  475. -- icon id / first selected line: 29332 / 29332
  476. -- text alignment: 1
  477. -- font id: 0
  478. -- text size: 12
  479. -- style flags: 0
  480. -- line height: 16
  481. -- part name: 
  482. ----- HyperTalk script -----
  483. on mousedown
  484.   HandleDoc
  485. end mousedown
  486.  
  487.  
  488.  
  489. -- part 81 (button)
  490. -- low flags: 00
  491. -- high flags: 2000
  492. -- rect: left=209 top=250 right=266 bottom=231
  493. -- title width / last selected line: 0
  494. -- icon id / first selected line: 29332 / 29332
  495. -- text alignment: 1
  496. -- font id: 0
  497. -- text size: 12
  498. -- style flags: 0
  499. -- line height: 16
  500. -- part name: 
  501. ----- HyperTalk script -----
  502. on mousedown
  503.   HandleDoc
  504. end mousedown
  505.  
  506.  
  507.  
  508. -- part 82 (button)
  509. -- low flags: 00
  510. -- high flags: 2000
  511. -- rect: left=209 top=266 right=282 bottom=231
  512. -- title width / last selected line: 0
  513. -- icon id / first selected line: 29332 / 29332
  514. -- text alignment: 1
  515. -- font id: 0
  516. -- text size: 12
  517. -- style flags: 0
  518. -- line height: 16
  519. -- part name: 
  520. ----- HyperTalk script -----
  521. on mousedown
  522.   HandleDoc
  523. end mousedown
  524.  
  525.  
  526.  
  527. -- part 83 (field)
  528. -- low flags: 80
  529. -- high flags: 4007
  530. -- rect: left=20 top=65 right=336 bottom=512
  531. -- title width / last selected line: 0
  532. -- icon id / first selected line: 0 / 0
  533. -- text alignment: 0
  534. -- font id: 3
  535. -- text size: 9
  536. -- style flags: 0
  537. -- line height: 12
  538. -- part name: Names
  539.  
  540.  
  541. -- part 84 (field)
  542. -- low flags: 81
  543. -- high flags: 4007
  544. -- rect: left=269 top=65 right=290 bottom=503
  545. -- title width / last selected line: 0
  546. -- icon id / first selected line: 0 / 0
  547. -- text alignment: 0
  548. -- font id: 3
  549. -- text size: 9
  550. -- style flags: 0
  551. -- line height: 12
  552. -- part name: StackPaths
  553.  
  554.  
  555. -- part 85 (field)
  556. -- low flags: 01
  557. -- high flags: 4007
  558. -- rect: left=276 top=59 right=172 bottom=506
  559. -- title width / last selected line: 0
  560. -- icon id / first selected line: 0 / 0
  561. -- text alignment: 0
  562. -- font id: 0
  563. -- text size: 12
  564. -- style flags: 0
  565. -- line height: 16
  566. -- part name: Stacks
  567. ----- HyperTalk script -----
  568. on mouseup
  569.   get line whichline() of card field "stackpaths"
  570.   if it ‚↠empty then go it
  571. end mouseup
  572.  
  573.  
  574. -- part 88 (button)
  575. -- low flags: 00
  576. -- high flags: 2000
  577. -- rect: left=277 top=43 right=59 bottom=351
  578. -- title width / last selected line: 0
  579. -- icon id / first selected line: 0 / 0
  580. -- text alignment: 1
  581. -- font id: 0
  582. -- text size: 12
  583. -- style flags: 0
  584. -- line height: 16
  585. -- part name: Add Stack
  586. ----- HyperTalk script -----
  587. on mouseup
  588.   put "Select a stack to add to the list.  Cancel to quit."
  589.   repeat forever
  590.     put filename("STAK") into launchthis
  591.     if launchthis is empty then exit repeat
  592.     lock screen
  593.     get lastpathcomponent(launchthis)
  594.     repeat with x = 1 to the number of lines in card field "stacks"
  595.       if line x of card field "stacks" = it then
  596.         put launchthis into line x of card field "stackpaths"
  597.         put empty into launchthis
  598.         exit repeat
  599.       end if
  600.       if line x of card field "stacks" > it then
  601.         put it & return before line x of card field "stacks"
  602.         put return before line x of card field "stackpaths"
  603.         put launchthis into line x of card field "stackpaths"
  604.         put empty into launchthis
  605.         exit repeat
  606.       end if
  607.     end repeat
  608.     if launchthis <> empty then
  609.       put launchthis into line x+1 of card field "StackPaths"
  610.       put it & return into line x+1 of card field "Stacks"
  611.     end if
  612.   end repeat
  613.   hide message
  614.   Set Scroll of card field "Stacks" to 0
  615. end mouseup
  616.  
  617.  
  618.  
  619. -- part 90 (button)
  620. -- low flags: 00
  621. -- high flags: 2000
  622. -- rect: left=352 top=43 right=59 bottom=427
  623. -- title width / last selected line: 0
  624. -- icon id / first selected line: 0 / 0
  625. -- text alignment: 1
  626. -- font id: 0
  627. -- text size: 12
  628. -- style flags: 0
  629. -- line height: 16
  630. -- part name: Delete Stack
  631. ----- HyperTalk script -----
  632. on mouseUp
  633.   if card field "stacks" is empty then exit mouseup
  634.   DOList "Delete","Cancel",card field stacks,"DIS+-","Select stacks to delete."
  635.   if the result is empty then exit mouseup else put the result into stacks
  636.   lock screen
  637.   repeat with y = number of items of stacks down to 1
  638.     get item y of stacks
  639.     delete line it of card field "stacks"
  640.     delete line it of card field "stackpaths"
  641.   end repeat
  642.   set scroll of card field "stacks" to 0
  643. end mouseUp
  644.  
  645.  
  646.  
  647. -- part 116 (button)
  648. -- low flags: 00
  649. -- high flags: 2000
  650. -- rect: left=192 top=43 right=59 bottom=248
  651. -- title width / last selected line: 0
  652. -- icon id / first selected line: 0 / 0
  653. -- text alignment: 1
  654. -- font id: 0
  655. -- text size: 12
  656. -- style flags: 0
  657. -- line height: 16
  658. -- part name: Launch Application
  659. ----- HyperTalk script -----
  660. on mouseUp
  661.   put "Please select an application to launch."
  662.   put filename("APPL") into launchthis
  663.   hide message
  664.   if launchthis ‚↠empty then open launchthis
  665. end mouseUp
  666.  
  667.  
  668.  
  669. -- part 117 (button)
  670. -- low flags: 00
  671. -- high flags: 2000
  672. -- rect: left=428 top=43 right=59 bottom=505
  673. -- title width / last selected line: 0
  674. -- icon id / first selected line: 0 / 0
  675. -- text alignment: 1
  676. -- font id: 0
  677. -- text size: 12
  678. -- style flags: 0
  679. -- line height: 16
  680. -- part name: Launch Stack
  681. ----- HyperTalk script -----
  682. on mouseUp
  683.   put "Please select a HyperCard stack to launch."
  684.   put filename("STAK") into launchthis
  685.   hide message
  686.   if launchthis ‚↠empty then go launchthis
  687. end mouseUp
  688.  
  689.  
  690.  
  691. -- part 126 (button)
  692. -- low flags: 00
  693. -- high flags: 2000
  694. -- rect: left=426 top=185 right=201 bottom=505
  695. -- title width / last selected line: 0
  696. -- icon id / first selected line: 0 / 0
  697. -- text alignment: 1
  698. -- font id: 0
  699. -- text size: 12
  700. -- style flags: 0
  701. -- line height: 16
  702. -- part name: 
  703. ----- HyperTalk script -----
  704. on mouseUp
  705.   type space with commandkey
  706. end mouseup
  707.  
  708.  
  709.  
  710. -- part 158 (field)
  711. -- low flags: 01
  712. -- high flags: 4007
  713. -- rect: left=276 top=201 right=297 bottom=506
  714. -- title width / last selected line: 0
  715. -- icon id / first selected line: 0 / 0
  716. -- text alignment: 0
  717. -- font id: 0
  718. -- text size: 12
  719. -- style flags: 0
  720. -- line height: 16
  721. -- part name: DAs
  722. ----- HyperTalk script -----
  723. on mouseup
  724.   get line whichline() of card field "DAs"
  725.   if it <> empty then domenu it
  726. end mouseup
  727.  
  728.  
  729. -- part 169 (button)
  730. -- low flags: 00
  731. -- high flags: 2000
  732. -- rect: left=277 top=185 right=201 bottom=352
  733. -- title width / last selected line: 0
  734. -- icon id / first selected line: 0 / 0
  735. -- text alignment: 1
  736. -- font id: 0
  737. -- text size: 12
  738. -- style flags: 0
  739. -- line height: 16
  740. -- part name: Add DA
  741. ----- HyperTalk script -----
  742. on mouseUp
  743.   GetDaNames
  744.   DoList "Add DAs","Cancel",namesofDas,"DIS","Select Das to add."
  745.   if the result = empty then exit mouseup else put the result into MyDA
  746.   set lockscreen to true
  747.   repeat with y = 1 to number of items of MyDA
  748.     repeat with x = 1 to the number of lines in card field "DAs"
  749.       if line x of card field "DAs" = item y of MyDA then
  750.         put empty into item y of MyDA
  751.         exit repeat
  752.       end if
  753.       if line x of card field "DAs" > item y of MyDA then
  754.         put return before line x of card field "Das"
  755.         put item y of MyDA into line x of card field "DAs"
  756.         put empty into item y of MyDA
  757.         exit repeat
  758.       end if
  759.     end repeat
  760.     if item y of MyDA <> empty then put item y of MyDA into line x+1 of card field "DAs"
  761.   end repeat
  762.   set cursor to 3
  763. end mouseUp
  764.  
  765.  
  766.  
  767. -- part 170 (button)
  768. -- low flags: 00
  769. -- high flags: 2000
  770. -- rect: left=353 top=185 right=201 bottom=425
  771. -- title width / last selected line: 0
  772. -- icon id / first selected line: 0 / 0
  773. -- text alignment: 1
  774. -- font id: 0
  775. -- text size: 12
  776. -- style flags: 0
  777. -- line height: 16
  778. -- part name: Remove DA
  779. ----- HyperTalk script -----
  780. on mouseUp
  781.   if card field "DAs" is empty then exit mouseup
  782.   DOList Delete,Cancel,card field "Das","DIS-+","Choose DAs to delete"
  783.   if the result is empty then exit mouseup else put the result into DAs
  784.   lock screen
  785.   repeat with y = number of items of Das down to 1
  786.     delete line (item y of Das) of card field "Das"
  787.   end repeat
  788.   Set scroll of card field "Das" to 0
  789. end mouseUp
  790.  
  791.  
  792.  
  793. -- part 206 (button)
  794. -- low flags: 00
  795. -- high flags: 2000
  796. -- rect: left=6 top=43 right=59 bottom=21
  797. -- title width / last selected line: 0
  798. -- icon id / first selected line: 0 / 0
  799. -- text alignment: 1
  800. -- font id: 0
  801. -- text size: 12
  802. -- style flags: 0
  803. -- line height: 16
  804. -- part name: Documents & Applications
  805. ----- HyperTalk script -----
  806. on mouseUp
  807.   if card field "List" is empty then exit mouseup
  808.   answer "Clear applications and documents?" with "OK" or "Cancel"
  809.   if it = "OK" then
  810.     put empty into card field "List"
  811.     put empty into card field "Docs"
  812.     put empty into card field "Names"
  813.     put empty into card field "Paths"
  814.     set scroll of card field "list" to 0
  815.   end if
  816. end mouseUp
  817.  
  818.  
  819.  
  820. -- part 204 (button)
  821. -- low flags: 00
  822. -- high flags: 2000
  823. -- rect: left=260 top=43 right=59 bottom=276
  824. -- title width / last selected line: 0
  825. -- icon id / first selected line: 0 / 0
  826. -- text alignment: 1
  827. -- font id: 0
  828. -- text size: 12
  829. -- style flags: 0
  830. -- line height: 16
  831. -- part name: Stacks
  832. ----- HyperTalk script -----
  833. on mouseUp
  834.   if card field "Stacks" is empty then exit mouseup
  835.   answer "Clear stacks?" with "OK" or "Cancel"
  836.   if it = "OK" then
  837.     put empty into card field "Stacks"
  838.     put empty into card field "StackPaths"
  839.     set scroll of card field "stacks" to 0
  840.   end if
  841. end mouseUp
  842.  
  843.  
  844.  
  845. -- part 205 (button)
  846. -- low flags: 00
  847. -- high flags: 2000
  848. -- rect: left=260 top=185 right=201 bottom=276
  849. -- title width / last selected line: 0
  850. -- icon id / first selected line: 0 / 0
  851. -- text alignment: 1
  852. -- font id: 0
  853. -- text size: 12
  854. -- style flags: 0
  855. -- line height: 16
  856. -- part name: Desk Accesories
  857. ----- HyperTalk script -----
  858. on mouseUp
  859.   if card field "DAs" is empty then exit mouseup
  860.   answer "Clear desk accessories?" with "OK" or "Cancel"
  861.   if it = "OK" then
  862.     put empty into card field "DAs"
  863.     set scroll of card field "Das" to 0
  864.   end if
  865. end mouseUp
  866.  
  867.  
  868.  
  869. -- part 214 (button)
  870. -- low flags: 00
  871. -- high flags: 2000
  872. -- rect: left=209 top=282 right=298 bottom=231
  873. -- title width / last selected line: 0
  874. -- icon id / first selected line: 29332 / 29332
  875. -- text alignment: 1
  876. -- font id: 0
  877. -- text size: 12
  878. -- style flags: 0
  879. -- line height: 16
  880. -- part name: 
  881. ----- HyperTalk script -----
  882. on mousedown
  883.   HandleDoc
  884. end mousedown
  885.  
  886.  
  887.  
  888. -- part 217 (field)
  889. -- low flags: 81
  890. -- high flags: 0007
  891. -- rect: left=5 top=25 right=320 bottom=509
  892. -- title width / last selected line: 0
  893. -- icon id / first selected line: 0 / 0
  894. -- text alignment: 0
  895. -- font id: 3
  896. -- text size: 10
  897. -- style flags: 0
  898. -- line height: 14
  899. -- part name: Info
  900. ----- HyperTalk script -----
  901. on mouseup
  902.   visual zoom in
  903.   go to this card
  904.   hide the target
  905. end mouseup
  906.  
  907.  
  908. -- part contents for card part 13
  909. ----- text -----
  910. Monday, January 9, 1989
  911.  
  912. -- part contents for card part 7
  913. ----- text -----
  914. 9:00 AM
  915.  
  916. -- part contents for card part 217
  917. ----- text -----
  918. Directions:  To launch documents, their applications, stacks and DAs, you must first add them               
  919.                     using the add ("+")  buttons directly above each list.  Before adding documents, you 
  920.                     must have already added the application to which they belong.  Documents will appear 
  921.                     in a pop-up menu when you  hold the mouse button down on the document button to the 
  922.                     right of each application.
  923.  
  924.                     FinderHype keeps track of all the paths to the stacks, documents and applications so                                         
  925.                     that they will launch perfectly each time.  FinderHype will not permit you to add 
  926.                     more than 1 application, document (per application), DA, or stack of the same name.  
  927.                     When you try to do so, the path of the application, document or stack will be updated.
  928.  
  929.                     To launch an application, stack, or DA, simply click on its name in the scrolling
  930.                     list.  To launch a document and an application together, choose a document from the 
  931.                     pop-up menu  to the right of the application.  The application will automatically                     
  932.                     launch with the document.
  933.                     
  934.                     Use the "remove"(-) buttons to remove applications, stacks, DAs and documents from                                         
  935.                     their respective lists.   Shift click to select more than one application, stack or DA to
  936.                     remove.  Optionally, you can click on the trash can icon at the top left of each list (                    
  937.                     applications, stacks, and DAs) to remove all of the items contained in that list.  When 
  938.                     you remove an application from the list, its documents are removed as well.
  939.  
  940.                     Use the launch buttons on the top right of the applications and stack list to quickly 
  941.                     launch an application or stack not added to your list.  Use the menubar button on the 
  942.                     top right of the da list to toggle the menubar.  The FinderHype menu will perform
  943.                     some of the standard Finder operations such as renaming and deleting files.
  944.  
  945. Basic Info:   The applications and their documents, stacks and DAs are inserted in alphabetical                     
  946.                     order.  Use the scroll bars to move up and down through the lists.  The pop-up menu                      
  947.                     xfcn does not take into account the screen size so the pop-up menu will appear above 
  948.                     where it should on Macs with large moniters.
  949.  
  950. Kudos:  Many of FinderHype's abilities would not be possible except for the availability of some       
  951.              choice XCMDs and XFCNs.  I wish to thank Steve Drazga for the Developer stack from 
  952.              which several XCMDs and XFCNs were extracted as well as the XCMD and XFCN authors             
  953.              themselves:
  954.  
  955.                                        Dewi Williams:                 Rename File XFCN, Delete File XFCNs
  956.                                        Jim Henderson:                 Restart XCMD
  957.                                        Will Cate:                          Shutdown XCMD
  958.                                        Andrew GilMartin:            PopUpMenu XFCN
  959.                                        Steve Maller:                    FileName XFCN
  960.                                        James L. Paul:                  DoList XCMD
  961.                                        Aron Roberts:                   GetDANames XCMD
  962.                                        Menus For HyperCard:     Michael Long, Nine to Five Software
  963.                                        Copy XFCN:                       J. Brad Hicks                  
  964.  
  965.  
  966.         FinderHype: Designed and Created by Jerry C. Welsh, Jr., Triangle MacConsultants, Inc.
  967.                          Thanks to Mark and Barry for beta testing in the wee small hours.
  968.  
  969.                                             ‚Ä¢Custom databases (including HyperCard)
  970.                                             ‚Ä¢On and off-site training on most Mac applications
  971.                                             ‚Ä¢Networking
  972.                                             ‚Ä¢System analysis and installation
  973.                                             ‚Ä¢Documentation
  974.  
  975.              ‚Ä¢Triangle MacConsultants, P.O. Box 13366, RTP, NC  27709 (919) 941-5505‚Ä¢